<!DOCTYPE HTML>
<html>

<head>
    <meta charset="utf-8">
    <title>付款</title>
    <meta name="viewport"
        content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <link rel="stylesheet" type="text/css" href="../css/api.css" />
    <link rel="stylesheet" type="text/css" href="../css/aui.css" />
    <link rel="stylesheet" type="text/css" href="../css/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="css/shoufeipay.css" />
</head>

<body>
    <div id="app" v-cloak>
        <div class="aui-content">
            <div class="money">
                <div class="money_num">￥<span>{{payCost.toFixed(2)}}</span></div>
                <div class="line_box">
                    <div class="line_item">
                        <div class="line_title">{{totalCount}}笔账单</div>
                        <div class="line_content">￥{{totalCost.toFixed(2)}}</div>
                    </div>
                    <div class="line_item">
                        <div class="line_title">优惠</div>
                        <div class="line_content">￥{{discountCost.toFixed(2)}}</div>
                    </div>
                    <div class="line_item">
                        <div class="line_title">违约金</div>
                        <div class="line_content">￥{{breakCost.toFixed(2)}}</div>
                    </div>
                    <div class="cl"></div>
                </div>
            </div>
            <div class="cl"></div>
            <div class="pay_title">
                <label>收款方式</label>
            </div>
            <div class="aui-tab " id="tab">
                <div id="tabbar0" class="aui-tab-item aui-tab-color" v-bind:class="{'aui-active':payType==1}"
                    v-on:click="doSwitchType(1)">线下支付
                </div>
                <div id="tabbar1" class="aui-tab-item aui-tab-color" v-bind:class="{'aui-active':payType==2}"
                    v-on:click="doSwitchType(2)">线上支付
                </div>
            </div>
            <div v-if="!paySucceed">
                <div v-if="payType==1" class="under_pay">
                    <div v-on:click="doOffPay(item)" class="money_pay_list" v-for="item in paymentMethods">
                        <label class="basicfont">
                            <div class="money_pay_list_input">
                                <input v-bind:checked="chargeMoneyTypeId==item.id" class="aui-radio" type="radio"
                                    name="demo">
                            </div>
                            <div class="money_pay_list_txt">
                                {{item.name}}
                            </div>
                            <div class="cl"></div>
                        </label>
                    </div>
                    <div class="money_pay_list_erweima" v-on:click="payroomfeeoffline()">
                        <div class="under_pay_list_erweima_txt">确认付款</div>
                    </div>
                </div>
                <div v-if="wechatPayEnable||alipayEnable">
                    <div class="money_pay" v-if="payType==2">
                        <div class="money_pay_list">
                            <label v-if="wechatPayEnable" class="basicfont" v-on:click="do_generate(1)">
                                <div class="money_pay_list_input">
                                    <input class="aui-radio" v-bind:checked="payOnlineType==1" type="radio" name="demo">
                                </div>
                                <div class="money_pay_list_img">
                                    <img src="../image/pay_icon_weixin.png" />
                                </div>
                                <div class="money_pay_list_txt">
                                    微信付款
                                </div>
                                <div class="cl"></div>
                            </label>
                            <label v-if="alipayEnable" class="basicfont" v-on:click="do_generate(2)">
                                <div class="money_pay_list_input">
                                    <input class="aui-radio" v-bind:checked="payOnlineType==2" type="radio" name="demo">
                                </div>
                                <div class="money_pay_list_img">
                                    <img src="../image/pay_icon_zhifubao.png" />
                                </div>
                                <div class="money_pay_list_txt">
                                    支付宝付款
                                </div>
                                <div class="cl"></div>
                            </label>
                            
                        </div>
                        <div class="money_pay_list_erweima">
                            <div class="QrCode">
                                <img v-bind:src="QrCodeUrl" />
                            </div>
                        </div>
                    </div>
                </div>
                <div v-if="!wechatPayEnable&&!alipayEnable">
                    <div class="pay_status">
                        <label>暂未开线上支付功能</label>
                    </div>
                </div>
            </div>
            <div v-if="paySucceed">
                <div class="pay_status">
                    <label><i class="icon iconfont icon-yidu"></i> 缴费成功</label>
                </div>
                <div class="money_pay_list_erweima fixbottom" v-on:click="doOpenPrint()">
                    <div class="under_pay_list_erweima_txt">打印收款单据</div>
                </div>
            </div>
        </div>
    </div>
</body>
<script type="text/javascript " src="../script/api.js "></script>
<script type="text/javascript " src="../script/vue.js "></script>
<script type="text/javascript" src="../script/config.js"></script>
<script type="text/javascript" src="../script/common.js"></script>
<script type="text/javascript" src="../script/aui-toast.js"></script>
<script type="text/javascript" src="../script/aui-popup-new.js"></script>
<script type="text/javascript" src="../script/aui-pull-refresh.js"></script>
<script type="text/javascript" src="../script/aui-scroll.js"></script>
<script type="text/javascript" src="js/shoufeipay.js"></script>

</html>